/*
 *  Copyright (c) 2016 The WebRTC project authors. All Rights Reserved.
 *
 *  Use of this source code is governed by a BSD-style license
 *  that can be found in the LICENSE file in the root of the source
 *  tree. An additional intellectual property rights grant can be found
 *  in the file PATENTS.  All contributing project authors may
 *  be found in the AUTHORS file in the root of the source tree.
 */

#ifndef OHOS_VIDEO_RENDER_MANAGER_IMPL_H_
#define OHOS_VIDEO_RENDER_MANAGER_IMPL_H_

#include "api/video/video_scale_mode.h"
#include "api/video/video_render_manager.h"

namespace webrtc {
class VideoRenderManagerImpl : public VideoRenderManager {
 public:
  std::shared_ptr<VideoRenderInterface> CreateRender(const std::string& id) override;
  std::shared_ptr<VideoRenderInterface> GetRender(const std::string& id) override;
  void DisposeRender(const std::string &id) override;

 private:
  std::unordered_map<std::string, std::shared_ptr<VideoRenderInterface>> video_render_map_;
  std::mutex mutex_;
};

}  // namespace rtc

#endif  // OHOS_VIDEO_RENDER_MANAGER_IMPL_H_
